class MoneyOrderEntity {
  //ID
  String id = "";
  //代理券规格标识
  String commoditySpecId = "";
  //客户标识
  String custId = "";
  //销售总价
  String shopAllPrice = "";
  //定单状态
  String orderState = "";
  //是否用推广费采购
  String byYonJin = "";
  //商品名称*
  String name = "";
  //创建时间
  String createDate = "";
  bool isSelect = false;
  MoneyOrderEntity(
      {this.id,
      this.commoditySpecId,
      this.custId,
      this.shopAllPrice,
      this.orderState,
      this.byYonJin,
      this.name,
      this.createDate});

  MoneyOrderEntity.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    commoditySpecId = json['commoditySpecId'];
    custId = json['custId'];
    shopAllPrice = json['shopAllPrice'];
    orderState = json['orderState'];
    byYonJin = json['byYonJin'];
    name = json['name'];
    createDate = json['createDate'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['commoditySpecId'] = this.commoditySpecId;
    data['custId'] = this.custId;
    data['shopAllPrice'] = this.shopAllPrice;
    data['orderState'] = this.orderState;
    data['byYonJin'] = this.byYonJin;
    data['name'] = this.name;
    data['createDate'] = this.createDate;
    return data;
  }
}
